package org.leaf.green.b2b

class ProductService {

    static transactional = true

    def initInventory(Product product) {
        /*
        log.info("[class=ProductService, method=initInventory]")
        log.info("params.product=${product}")
        Warehouse.list().each{
            log.info("warehouse=${it}")
            new Inventory(
                warehouse : it
                , product: product
                , unit : product.unit
                , quantity : new BigDecimal(0)
                , available : new BigDecimal(0)
                , amount : new BigDecimal(0)
            ).save(flush:true)
        }
        */
    }
}
